package com.yuandian.api.business_monitor.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.yuandian.po.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 步骤
 * </p>
 *
 * @author fucx
 * @since 2020-09-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BusinessProcess extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 首端业务资源编码
     */
    private String manualBusinessCode;

    /**
     * 匹配率
     */
    private Integer matching;

    /**
     * 出现总数
     */
    private Integer findTotal;

    /**
     * 步骤名称
     */
    private String name;

    /**
     * 步骤类型(首，中间，末)
     */
    private String stepType;

    /**
     * 匹配数量
     */
    private Integer matchAmount;

    private String creater;

    /**
     * 应用系统编码
     */
    private String systemCoding;
    private int systemId;

    /**
     * 性能分析web阈值（性能分析专用；单位：微秒）
     */
    private String performanceThreshold;

    /**
     * 性能分析mid阈值（性能分析专用；单位：微秒）
     */
    private String apiThreshold;

    /**
     * 性能分析db阈值（性能分析专用；单位：微秒）
     */
    private String dbThreshold;

    /**
     * 功能模块名称
     */
    private String funcModuleName;

    /**
     * t_business_single_relationship关系表的id值
     */
    private Integer busSingleRelationshipId;

    /**
     * 学习状态
     */
    private String studyStatus;

    /**
     * 排序字段
     */
    private Integer sequence;

    /**
     * 编码
     */
    private String stepCode;

    /**
     * 是否配置组合策略
     */
    private Integer isConfigureStrategy;

    /**
     * 从redis中获取sessionid进行回填专属指标ID
     */
    private String getSessionidIndicator;

    /**
     * 从redis中获取sessionid进行回填专属指标名称
     */
    private String getSessionidIndicatorName;

    /**
     * 保存sessionid到redis专属指标ID
     */
    private String saveSessionidIndicator;

    /**
     * 保存sessionid到redis专属指标名称
     */
    private String saveSessionidIndicatorName;

    /**
     * 业务编码 关联t_business_single_relationship查询
     */
    private String businessCode;

    private int isAllowFail;

	@Override
	public String toString() {
		return "BusinessProcess [id=" + id + ", manualBusinessCode=" + manualBusinessCode + ", matching=" + matching
				+ ", findTotal=" + findTotal + ", name=" + name + ", stepType=" + stepType + ", matchAmount=" + matchAmount
				+ ", creater=" + creater + ", systemCoding=" + systemCoding + ", performanceThreshold=" + performanceThreshold
				+ ", apiThreshold=" + apiThreshold + ", dbThreshold=" + dbThreshold + ", funcModuleName=" + funcModuleName
				+ ", busSingleRelationshipId=" + busSingleRelationshipId + ", studyStatus=" + studyStatus + ", sequence="
				+ sequence + ", isConfigureStrategy=" + isConfigureStrategy + ", getSessionidIndicator=" + getSessionidIndicator
				+ ", saveSessionidIndicator=" + saveSessionidIndicator + "]";
	}



}
